package com.lovo.cloud.controller;

import com.lovo.cloud.model.dto.TicketDTO;
import com.lovo.cloud.service.MoviesService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author luo
 * @description
 * @date 2020/11/30 17:46
 */
@RestController
public class CinemaController {

    @Resource
    private MoviesService moviesService;

    @PostMapping("/cinema")
    public String sale(@RequestBody TicketDTO ticketDTO){
        return moviesService.saleTicket(ticketDTO);
    }

}
